<div id="qTip_<?php echo $this->id?>" class="YSelectorWidget_mutil_select">
	<ul>
<?php
	if($this->options instanceof YTree){
		$options = $this->options->get_formated_list('┊');
		foreach ($options as $item){
			$k = $item['_id'];
			$v = $item['name'];
			$input_attrs = array(
				'type'	=> 'checkbox', 
				'name'	=> $this->name, 
				'value'	=> $k
			);
			if(isset($item['parent']) && !empty($item['parent'])){
				$input_attrs['parent'] = $item['parent'];
			}
			$html = CHtml::tag('input', $input_attrs);
			$html .= $v;
			echo CHtml::tag('li', array(), CHtml::tag('label', array(), $html));
		}
	}else if(is_array($this->options)){
		foreach ($this->options as $k => $v){
			$html = CHtml::tag('input', array('type'=>'checkbox', 'name'=>$this->name, 'value'=>$k));
			$html .= $v;
			echo CHtml::tag('li', array(), CHtml::tag('label', array(), $html));
		}
	}
?>
	</ul>
	<div class="buttons">
		<input type="button" class="button ok_btn" value="确认" />
	</div>
</div>
<script>
	init_qTip('<?php echo $this->id?>', '<?php echo $this->name?>', '<?php echo $this->default_text?>');
</script>